import Vue from 'vue'
import Vuex from 'vuex';
import App from './App'
import store from '@/store'
import Mixin from '@/common/publicMethod.js'
import config from '@/common/config.js'

Vue.config.productionTip = false
App.mpType = 'app'
var Fly = require("flyio/dist/npm/wx"); // 请求拦截器
var fly = new Fly;
Vue.prototype.$store = store;// 缓存
Vue.prototype.uploadUrl =  config.conf.uploadUrl;// 上传uploadUrl
Vue.prototype.baseUrl =  config.conf.API_ROOT; //请求api地址

Vue.use(Vuex);
Vue.mixin(Mixin);

const app = new Vue({
	store,
    ...App
})
app.$mount()
